package com.dxy.df.utils;


public class ArrayUtil {

    private ArrayUtil() {
    }

    public static boolean isEmpty(Object[] objs) {
        return objs == null || objs.length == 0;
    }

    public static boolean isNotEmpty(Object[] objs) {
        return objs != null && objs.length > 0;
    }

    public static boolean isEmpty(byte[] bytes) {
        return bytes == null || bytes.length == 0;
    }

    public static boolean isEmpty(char[] chars) {
        return chars == null || chars.length == 0;
    }

    public static boolean isNotEmpty(byte[] bytes) {
        return bytes != null && bytes.length > 0;
    }

    public static boolean isEmpty(int[] ints) {
        return ints == null || ints.length == 0;
    }

    public static boolean isNotEmpty(int[] ints) {
        return ints != null && ints.length > 0;
    }

    public static boolean isEmpty(long[] longs) {
        return longs == null || longs.length == 0;
    }

    public static boolean isNotEmpty(long[] longs) {
        return longs != null && longs.length > 0;
    }
}
